home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form frmError
- BorderStyle = 3 'Fixed Double
- ClientHeight = 2175
- ClientLeft = 1095
- ClientTop = 1485
- ClientWidth = 4515
- Height = 2580
- Left = 1035
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 2175
- ScaleWidth = 4515
- Top = 1140
- Width = 4635
- Begin Timer Timer1
- Enabled = 0 'False
- Interval = 30000
- Left = 3420
- Top = 1620
- End
- Begin CommandButton cmdOK
- Cancel = -1 'True
- Caption = "OK"
- Default = -1 'True
- Height = 435
- Left = 1500
- TabIndex = 2
- Top = 1560
- Width = 1215
- End
- Begin Image Image1
- Height = 480
- Left = 180
- Picture = ERROR.FRX:0000
- Top = 240
- Width = 480
- End
- Begin Label Label2
- Caption = "Check your screen saver password and try again."
- Height = 495
- Left = 840
- TabIndex = 1
- Top = 780
- Width = 3555
- End
- Begin Label Label1
- Caption = "Incorrect Password;"
- Height = 255
- Left = 840
- TabIndex = 0
- Top = 300
- Width = 3015
- End
- Option Explicit
- ' This form could be a Message box, however in order for
- ' for it to appear above the main screen and be System Modal
- ' we need to make it a form
- Sub cmdOK_Click ()
- Unload Me
- End Sub
- Sub Form_Load ()
- Dim i As Integer
- 'Enable the Timer
- timer1.Enabled = True
- caption = SaverName
- CentreForm Me
- ' Set the Form to be TopMost
- SetWindowPos Me.hWnd, -1, 0, 0, 0, 0, 3
- ' Set the Form to be System Modal (Ouch!)
- i = SetSysModalWindow(hWnd)
- End Sub
- Sub Form_Unload (Cancel As Integer)
- 'Disable the Timer
- timer1.Enabled = False
- End Sub
- Sub Timer1_Timer ()
- '
- ' if we have had no activity for 30 seconds then
- ' let the screen saver get on with it.
- '
- Unload Me
- End Sub
-